/* 编辑内容页面样式 */

/* 编辑器容器 */
.editor-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

/* 标题容器 */
.title-container {
  padding: 15px;
  border-bottom: 1px solid #ebeef5;
}

.title-input .el-input__inner {
  height: 50px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  padding-left: 0;
}

.title-input .el-input__inner:focus {
  box-shadow: none;
}

/* Markdown编辑器 */
.markdown-editor {
  flex: 1;
  overflow: hidden;
}

/* 自定义Markdown编辑器样式 */
.v-note-wrapper {
  min-height: 100%;
  z-index: 1;
}

.v-note-panel {
  display: flex;
  flex-direction: column;
  height: 100% !important;
}

.v-note-edit.divarea-wrapper,
.v-note-show {
  flex: 1;
  overflow-y: auto;
}

/* 工具栏 */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  border-top: 1px solid #ebeef5;
}

.right-tools {
  display: flex;
  gap: 10px;
}

/* 上传容器 */
.upload-container {
  text-align: center;
}

.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 178px;
  height: 178px;
  line-height: 178px;
  text-align: center;
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
}

.avatar-uploader-icon:hover {
  border-color: #409eff;
}

/* 预览容器 */
.preview-container {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.preview-container h2 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ebeef5;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .editor-container {
    height: calc(100vh - 150px);
  }
  
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .header-right {
    margin-top: 10px;
    align-self: flex-end;
  }
  
  .toolbar {
    flex-direction: column;
    gap: 10px;
  }
  
  .right-tools {
    align-self: flex-end;
  }
} 